Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(relay): Only update internal state when it changed #76594

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

Dav1dde
Copy link
Member

@Dav1dde Dav1dde commented Aug 27, 2024

Removes the is_internal update from the relay_from_id function, to move the check to the endpoint (where it already was anyways). All additional uses of relay_from_id don't seem to care about the internal state, except authentication.
So that seems fine, also this behaviour does seem more consistent.

Copy link

codecov bot commented Aug 27, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files Patch % Lines
...rc/sentry/api/endpoints/relay/register_response.py 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master   #76594       +/-   ##
===========================================
+ Coverage   56.44%   78.17%   +21.72%     
===========================================
  Files        6891     6904       +13     
  Lines      306655   306920      +265     
  Branches    52826    52821        -5     
===========================================
+ Hits       173090   239921    +66831     
+ Misses     128972    60606    -68366     
- Partials     4593     6393     +1800     

Co-authored-by: Joris Bayer <joris.bayer@sentry.io>
@Dav1dde Dav1dde merged commit 7e0fe49 into master Aug 28, 2024
49 of 50 checks passed
@Dav1dde Dav1dde deleted the dav1d/relay-internal branch August 28, 2024 09:54
@Dav1dde
Copy link
Member Author

Dav1dde commented Aug 28, 2024

PR. does what it was supposed to do:
image

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants